package com.mall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.mapper.UserMapper;
import com.mall.pojo.User;
import com.mall.service.IUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * UserService服务实现类
 * </p>
 *
 * @author xiao-chen
 * @since 2023-04-20
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public boolean updateStatusBatchById(List<Long> userIds) {
        int i = userMapper.updateStatusBatchById(userIds);
        return i > 0;
    }
}
